# coding: utf-8
from django.conf.urls.defaults import *
from pycode import settings, load_views

# Главная страница админки
views = load_views("admin")
urlpatterns = patterns("pycode.admin.views", url(r"^$", "main"))
settings.GLOBALS["admin_views"] = views
for view in views:
	urlpatterns.append(url(view.urlpattern, view.view))

#urlpatterns = patterns("admin.views",
#	url(r"^$", "main"),
#	url(r"^articles/(?P<key>[-\w]+)", "article_edit"),
#	url(r"^articles/", "articles_list"),
#)

